<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2020/3/21 0021
 * Time: 17:09
 */

namespace app\home\model;

use think\Model;

class Recommend extends Model
{


    //获取搜索关键字的推荐
    public static  function  getKeywordList($position=1,$limit=10){
        $where['position']=$position;
        $where['status']=1;
        return self::where($where)->order(['sort'=>'desc'])->limit($limit)->column('keyword');
    }
}